<?php
namespace Home\Controller;
use Think\Controller;

class JobController extends Controller{
	public function detail(){

		$id = I("id",0,"int");
		$job_info =D('Job')->getJobById($id);
		//dump($job_info);
		
		//展示
		$this->assign("job_info",$job_info);



	/*更新浏览数 */
		/*$map = array('id' => $id);
		$Document->where($map)->setInc('view');*/

		$this->display();

	}
	    public function index(){

  	    $job_list = D("job")->jobLists();
        //dump($job_list);
        $this->assign('job_list',$job_list);

        $this->display();
        
	}
	


	
}
	